package kr.hkit.powerjava.chapter24.work;

import java.util.Scanner;

public abstract class ServiceItem<T> {
	protected InterfaceDao<T> dao;
	protected Scanner sc;
	
	public ServiceItem(InterfaceDao<T> dao,Scanner sc){
		this.dao=dao;
		this.sc=sc;
		init();
	}

	private void init() {
		dao.loadFile();
		prnMenu();
	}

	private void prnMenu() {
		int res = 0;
		T item = null;
		do{
			System.out.print("1.입력\n2.삭제\n3.수정\n4.검색\n5.리스트보기\n6.종료\n");
		}
		
	}
	public abstract T inputItemInfo(boolean gubun);
	public abstract void prnSubMenu();
		
}
